import service from "@/request";


export function apiGetCase(filter = {}) {
    return service.request({
        // url: 'api/devices/list',
        url: 'api/cases',
        method: 'GET',
        params: {
            ...filter
        }
    })
}

export function apiAddCase(device) {
    return service.request({
        url: 'api/cases',
        method: 'POST',
        data: device
    })
}

export function apiGetSection() {
    return service.request({
        url: 'api/sections',
        method: 'GET',
    })
}
